﻿<%@ Page Language="C#" MasterPageFile="~/Student/StuMasterPage.master" AutoEventWireup="true"
    CodeFile="PersonalInfo.aspx.cs" Inherits="Student_Default2" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentBody" runat="Server">

    <div id="personalInfo_Content">
        <form id="form1" runat="server">
            <asp:DataList ID="StudentShowList" runat="server" CellPadding="4" DataKeyField="id" DataSourceID="SqlDataSource1" ForeColor="#333333">
                <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <ItemTemplate>
                    <div style="float: left; visibility: hidden;">
                        ID:<asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label></div>

                    <table border="0">
                        <tr>
                            <td style="width: 100px">
                                学号:
                            </td>
                            <td style="width: 300px">
                                <asp:Label ID="stuIdLabel" runat="server" Text='<%# Eval("stuId") %>' />
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                姓名:
                            </td>
                            <td>
                                <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                班级:
                            </td>
                            <td>
                                <asp:TextBox ID="classInLabel" runat="server" Text='<%# Eval("classIn") %>' />
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px;">
                                性别:
                            </td>
                            <td style="height: 20px;">
                                <asp:DropDownList ID="sexlist" SelectedValue='<%# DataBinder.Eval(Container.DataItem,"sex")%>'
                                    runat="server">
                                    <asp:ListItem Value="男" Text="男" />
                                    <asp:ListItem Value="女" Text="女" />
                                </asp:DropDownList>
                            </td>
                            <td style="width: 100px; height: 20px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 年龄:
                            </td>
                            <td>
                                <asp:TextBox ID="ageLabel" runat="server" Text='<%# Eval("age") %>'/>
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                            安全号码：
                            </td>
                            <td>
                            <asp:Label ID="scurityNoLabel" runat="server" Text='<%# Eval("scurityNo") %>'/>
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td> E-Mail:
                            </td>
                            <td><asp:TextBox ID="emailLabel" runat="server" Text='<%# Eval("email") %>'/>
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td> 联系方式:
                            </td>
                            <td><asp:TextBox ID="phoneLabel" runat="server" Text='<%# Eval("phone") %>'/>
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                        <tr>
                            <td>注册日期:
                            </td>
                            <td><asp:Label ID="registerDateLabel" runat="server" Text='<%# Eval("registerDate") %>'/>
                            </td>
                            <td style="width: 100px">
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <AlternatingItemStyle BackColor="White" />
                <ItemStyle BackColor="#EFF3FB" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            </asp:DataList>
            <table border="0" align="center">
                <tr>
                    <td colspan="2">
                        <asp:ImageButton ImageUrl="~/Image/确认修改.gif" ID="btnSubmit" OnClick="Button1_Click" runat="server" />
                    </td>                    
                </tr>
            </table> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:onlineexamConnectionString %>" />
        </form>
    </div>
    <asp:Label ID="msg" Visible="false" runat="server" />
</asp:Content>
